home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap08 / Paint4 / CLine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  482 b   |  23 lines

  1. //***********************************************************************
  2. //
  3. //  CLine.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CLine : public CObject
  8. {
  9.     DECLARE_SERIAL (CLine)
  10.  
  11. private:
  12.     CPoint m_ptFrom;
  13.     CPoint m_ptTo;
  14.     UINT m_nWidth;
  15.     COLORREF m_crColor;
  16.  
  17. public:
  18.     CLine () {}
  19.     CLine (CPoint, CPoint, UINT, COLORREF);
  20.     virtual void Serialize (CArchive&);
  21.     virtual void Draw (CDC*);
  22. };
  23.